//
//  CSDbManager.h
//  CSObjectSDK
//
//  Created by 瞿衡 on 16/6/29.
//  Copyright © 2016年 ND. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <FMDB/FMDB.h>
#import "BZTableOperator.h"

@interface BZDataBase : NSObject

/**
 *  数据库处理
 *
 *  @return 数据库操作单例
 */
+ (instancetype)shareDataBase;

- (FMDatabaseQueue *)initialDbByName:(NSString *)dbName
                          tableNames:(NSArray <NSString *>*)tableNames
                       tableVersions:(NSArray *)tableVersions
                         tableModels:(NSArray *)tableModels
                            outError:(NSError *__autoreleasing *)outError;

- (FMDatabaseQueue *)getDbQueueWithDbName:(NSString *)dbName;

- (NSString *)getDbPathWithDbName:(NSString *)dbName;

@end
